-- GENERATED SPELL FOR [Stable Master Mercer] --


function spell0_27236(pUnit, Event) --@Summon Warhorse,n/a--
pUnit:FullCastSpellOnTarget(50829,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27236', 632, 1)
end

function Sorts_27236(pUnit, Event)
local choix_sorts_27236 = math.random(0, 0)
if choix_sorts_27236 == 0 then
pUnit:RegisterEvent('spell0_27236', 1, 1)
end
end

function mob27236_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27236', math.random(1500, 3000), 1)
end

function mob27236_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27236_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27236_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27236, 1, 'mob27236_Action')
RegisterUnitEvent(27236, 2, 'mob27236_Leave')
RegisterUnitEvent(27236, 3, 'mob27236_Kill')
RegisterUnitEvent(27236, 4, 'mob27236_Die')
